

#define ST7565P_WIDTH			86// + 1		// +1 is dummy that serial problem
#define ST7565P_COLUMN_ADDRESS	0//46	//0
#define ST7565P_PAGE8_ADDRESS 	0x80 //or  0x01

#define	ST7565P_SEQ_INIT_START		0x01
#define	ST7565P_SEQ_IDLE			0x00
#define	ST7565P_SEQ_SEND_DATA		0x10
#define	ST7565P_SEQ_SEND_WAIT		0x11
#define	ST7565P_SEQ_SEND_RESTART	0x16
#define	ST7565P_SEQ_ALL_ON			0x17
#define	ST7565P_SEQ_LCD_CLEAR		0x18
#define	ST7565P_SEQ_LCD_CLEAR_WAIT	0x19
#define	ST7565P_SEQ_DISPLAY_ON		0x1E

void ST7565P_DisplayOn(void);
unsigned char ST7565_UpdateDisplayData(unsigned short usX, unsigned short ucBuf);
unsigned char ST7565_UpdateDisplayString(unsigned short usX, unsigned char *ucBuf, unsigned char ucAlign);
void ST7565_UpdateSubDisplayData(unsigned char *ucBuf);
void ST7565_UpdateIconData(unsigned long ulData);
void ST7565_UpdateDisplayImage(unsigned short usX,unsigned char ucIndex);
unsigned char ST7565_UpdateDisplayStringUnicode(unsigned short usX, unsigned char *usBuf, unsigned char ucAlign, unsigned char ucUni);
unsigned short ST7565_UpdateDisplayStringUnicodeScroll(unsigned short usX, unsigned short usOffset, unsigned char *ucBuf, unsigned char ucSize, unsigned char ucUni);

